$OpenBSD: patch-gtkhtml_htmlimage_c,v 1.1 2011/03/07 19:27:27 ajacoutot Exp $

From be95ffabe801e1c273f0bceb32d592e5a53eacb7 Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Thu, 18 Nov 2010 11:13:20 +0000
Subject: Use GSourceFunc instead of GtkFunction

--- gtkhtml/htmlimage.c.orig	Mon Sep 13 14:16:11 2010
+++ gtkhtml/htmlimage.c	Sat Feb 26 14:41:16 2011
@@ -1161,13 +1161,13 @@ html_image_pointer_queue_animation (HTMLImagePointer *
 		delay = gdk_pixbuf_animation_iter_get_delay_time (ip->iter);
 
 		ip->animation_timeout = g_timeout_add (delay,
-						       (GtkFunction) html_image_pointer_update,
+						       (GSourceFunc) html_image_pointer_update,
 						       (gpointer) ip);
 	}
 
 }
 
-static gint
+static gboolean
 html_image_pointer_update (HTMLImagePointer *ip)
 {
 	HTMLEngine *engine;
@@ -1318,7 +1318,7 @@ html_image_pointer_new (const gchar *filename, HTMLIma
 	retval->factory = factory;
 	retval->stall = FALSE;
 	retval->stall_timeout = g_timeout_add (STALL_INTERVAL,
-					       (GtkFunction)html_image_pointer_timeout,
+					       (GSourceFunc)html_image_pointer_timeout,
 					       retval);
 	retval->animation_timeout = 0;
 	return retval;
